/*
 * @Author: 清酒吖
 * @Date: 2022-01-17 15:57:11
 * @Email:  
 * @LastEditors:  
 * @LastEditTime: 2022-02-07 14:47:57
 * @Description: 
 * @version: x 1.0
 */
import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

export function verify() {
  return request({
    url: '/user/verify',
    method: 'post',
  })
}

export function getInfo(token) {
  return request({
    url: '/vue-admin-template/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
